package MyBinaryTree;

public class Text {
    public static void main(String[] args) {
        BinaryTree tree = new BinaryTree(1,new BinaryTree(2,new BinaryTree(3),new BinaryTree(4)),new BinaryTree(5));
        tree.post();
        System.out.println();
        tree.postRecursion(tree);
        System.out.println();
        tree.preRecursion(tree);
    }

}
